package book.book.dao;

import book.book.bean.Borrowinfo;

import java.util.List;

public interface BorrowinfoDao {
    List<Borrowinfo> selectBorrwInfoByBookId(String id);

    //借阅信息插入
    int insert(Borrowinfo borrowinfo);

    List<Borrowinfo> selectBorrwInfoByUser(String borrower);

    int updateBookCount(String bookId);
    //查看自己的借阅记录
    List<Borrowinfo> selectBinfoByUser(String borrower);
    //还书
    int updateBookCountBack(String bookId ,String borrower);
}

